import java.util.*;

public class Test {
    //HashBuck 的测试
    public static void main(String[] args) {
        HashBuck hashBuck = new HashBuck();
        hashBuck.put(1,"a");
        hashBuck.put(2,"n");
        hashBuck.put(3,"t");
        hashBuck.put(11,"a");
        hashBuck.put(13,"a");
        hashBuck.put(12,"a");
        hashBuck.put(5,"a");
        hashBuck.put(15,"a");
        hashBuck.put(14,"a");
        System.out.println("==");
        System.out.println(hashBuck.get(1));
    }
    //Map方法的测试
    public static void main2(String[] args) {
        Map<String, Integer> map = new TreeMap<>();
        map.put("hello", 1);
        map.put("world", 2);
        Set<String> set = map.keySet();
        Collection<Integer> collections = map.values();
        Set<Map.Entry<String, Integer>> entries= map.entrySet();
        for(Map.Entry<String, Integer> entry : entries){
            System.out.println("key: " + entry.getKey() + " value: " + entry.getValue());

        }
    }

    //MyBinarySearchTree 的测试
    public static void main1(String[] args) {
        MyBinarySearchTree tree = new MyBinarySearchTree();
        tree.insert(1);
        tree.insert(9);
        tree.insert(7);
        tree.insert(3);
        System.out.println(tree.delete(3));
        System.out.println(tree.search(6));
    }
}
